<div id="f-form">
{$html}
</div>

<if condition="isset($_GET['nomember'])">
<script>
	//直接提交审批
	$("#f-form form").append('<input type="hidden" name="status" value="1"/>');
</script>
</if>
<if condition="isset($_GET['nomember'])">
<hr>
<!--<div class="_sendtype icheck" style="">





<div style="display:inline-block;" onclick="_sendtype(-1);">
    <div class="radio square-red single-row">
      <input type="radio" value="0" checked name="rule">
      <label>先存档</label>
    </div>
  </div>


<div style="display:inline-block;" onclick="_sendtype(1);">
    <div class="radio square-red single-row">
      <input type="radio" value="1" name="rule">
      <label>立即递交</label>
    </div>
  </div>

</div>-->

<div id="f-seleMember" data-intro="此处选择人员" data-position="bottom" >
<html:listselect class="btn btn-sm btn-success" name="member" multiple="0" url="{:U('Member/selectText')}" title="选择人员"/>
</div>




<script>
	//当选择人员时将选中的人员放入表单
	var title = $('#f-seleMember');
	title.bind('DOMNodeInserted', function(e) {
		if($(this).find('input[name="member_id"]').val()){
			$("#f-form").find('input[name="member_id"]').remove();
			$("#f-form form").append($(this).find('input[name="member_id"]'));
			$("#f-form").find('input[name="member_name"]').remove();
			$("#f-form form").append($(this).find('input[name="member_name"]'));
		};
		
		
	});
	
    /*function _sendtype(type){
	     $('#_sendtype').remove();
		 var html = '<input type="hidden" id="_sendtype" name="status" value="'+type+'" />';
		 $('._sendtype').prev('hr').prev('form').append(html);
		
	}*/
	
    $('#f-form form').append('<input type="hidden" name="is_add" value="1" /><input type="hidden" name="temptask" value="<?php echo isset($_GET['temptask'])?1:0;?>" /><input type="hidden" name="pid" value="{$pid}">');
    $('#f-form form').css('padding','10px');
</script>

</if>